package com.ustc.hewei.commonmodule.service;

import com.ustc.hewei.commonmodule.dto.Result;
import com.ustc.hewei.commonmodule.dto.UserDTO;
import com.ustc.hewei.commonmodule.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hewei
 * @since 2022-10-05
 */
public interface IBlogService extends IService<Blog> {

    Result queryBlogById(Long id, UserDTO userDTO);

    Result queryHotBlog(Integer current, UserDTO userDTO);

    Result likeBlog(Long id, UserDTO userDTO);

    Result queryBlogLikes(Long id);

    Result saveBlog(Blog blog, UserDTO userDTO);

    Result queryBlogOfFollow(Long max, Integer offset, UserDTO userDTO);

    Result queryMyBlog(Integer current, UserDTO userDTO);

    Result queryBlogByUserId(Integer current, Long userId);
}
